<?php
include("global_login.php");

$chk 		= $_REQUEST["chk"];
$clothImg 	= $_FILES["clothImg"];
$filename	= $_REQUEST["filename"];

if(intval($chk) == 1){
	$path = "images/".$filename;
	if($COMMON->fileUpLoad($clothImg['tmp_name'], $path)){
		echo "succeed!<br/>";
	}else{
		echo "unsuccessful!<br/>";
	}
}
$clothImgSmallSrc = "..\\client\\fileUpLoad\\clothImgSmall\\003\\0003.png";
//$clothImgSmallSrc = "sql\mysql\aa.php";
//unlink($clothImgSmallSrc);
//echo(file_exists("../client/fileUpLoad/clothImgSmall/002/0001.png"));
copy("../client/fileUpLoad/clothImgSmall/002/0001.png","../client/fileUpLoad/clothImgSmall/002/0003.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>

<form action="" method="post" enctype="multipart/form-data" name="fileupload">
<input type="file" name="clothImg"/><br/>
<input type="text" name="filename"/><br/>
<input type="hidden" name="chk" value="1"/>
<input type="submit" name="submit" value="submit"/>

</form>
</body>
</html>
